@Deprecated("", ReplaceWith("this.bar()"))
fun Int.foo(): Int = 42

@Deprecated("", ReplaceWith("this.bar2()"))
fun Int.foo2(): Int = 42

fun Int.bar(): Int = 42

fun Int.bar2(): Int = 42

fun main() {
    42.bar().foo().bar().foo2()
}